home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.express.ca!not-for-mail
- From: gchan@express.ca (Gary Chan)
- Subject: convert a string to a float
- Message-ID: <317cc$02f19.2d@news.express.ca>
- Date: Fri, 01 Mar 1996 08:47:25 GMT
- X-Newsreader: WinVN 0.99.6
- MIME-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
-
- I need to write this program to convert a string to a float:
-
- Synopsis:
- int Stof(char string[], float *floatPtr);
- Arguments:
- string-string to be converted
- floatPtr-point to float for converted value
- Returns:
- YESNUM - if valid float converted
- NONUM - if not converted
-
- Leading + or - are allowed.
-
- Please help me on this assignment!!!
- thank you.
-
-
-